home *** CD-ROM | disk | FTP | other *** search
Wrap
-- card: 3322 from stack: in -- bmap block id: 4818 -- flags: 4000 -- background id: 5772 -- name: Instruction card 4 ----- HyperTalk script ----- on openCard set scroll of bkgnd field id 1 to 0 end openCard -- part 1 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=259 top=322 right=341 bottom=292 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Cover up -- part contents for background part 2 ----- text ----- RenameFile XCMD -- part contents for background part 44 ----- text ----- Form What it does Examples Error codes -- part contents for background part 1 ----- text ----- RenameFile <old file path name>, <new file name> The RenameFile XCMD changes the name of the file, folder, or disk specified in <old file path name> to the name supplied in <new file name>. The file's original name must be preceeded by its path name if it is not in the root directory (i.e. "Hard Disk:File's Folder:File"). The new file name must not be preceeded by a path name or an error will occur. Rename "Direct Drive 20:", "Dave's HD:" Rename ":HyperCard Folder:XCMD Stack", "XFCN Stack" Rename "Dave's HD:HyperCard Folder:", "HC Folder" Rename it, newName If Rename should fail for any reason, it will return an error code in the HyperCard global variable "the result." The following error messages are possible: OSErr: Bad file name OSErr: File directory full OSErr: Directory not found or incomplete pathname OSErr: Duplicate file name and version OSErr: External file system OSErr: File not found OSErr: Problem during rename OSErr: I/O error OSErr: No such volume OSErr: No default volume OSErr: Software volume lock OSErr: Hardware volume lock